import java.util.Scanner;
public class homework {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Fraction a = new Fraction(in.nextInt(), in.nextInt());
        Fraction b = new Fraction(in.nextInt(),in.nextInt());
        a.print();
        b.print();
        a.plus(b).print();
        a.multiply(b).plus(new Fraction(5,6)).print();
        a.print();
        b.print();
        in.close();
    }
}
class Fraction{
    int a;
    int b;
    Fraction(int a,int b)
    {
        this.a=a;
        this.b=b;
    }
    double toDouble()
    {
        return (double) (a/b);
    }
    Fraction plus(Fraction r)
    {
        Fraction m=new Fraction(0,0);
        if(this.b==r.b)
        {
            m.b=r.b;
            m.a=this.a+r.a;
        }
        else
        {
            m.b=r.b*this.b;
            m.a=(r.a*this.b)+(this.a*r.b);
        }
        return m;
    }
    Fraction multiply(Fraction r)
    {
        Fraction m=new Fraction(0,0);
        m.a=this.a*r.a;
        m.b=this.b*r.b;
        return m;
    }
    void print()
    {
        if(a%b==0)
        {
            System.out.println(a/b);
        }
        else {
            int m=1;
            int w=1;
            int min=this.a;
            if(min>this.b)
            {
                min=this.b;
            }
            for(int i=1;i<=min;i++)
            {
                if(this.b%i==0&&this.a%i==0)
                {
                    w=i;
                }
            }
            this.a=this.a/w;
            this.b=this.b/w;
            System.out.println(this.a+"/"+this.b);
        }
    }
}